import request from '@/utils/request'

export function getapi(current,size) {
    return request({
        url: '/admin/tag/getTag',
        method: 'get',
        params: { current, size }
    })
}

export function addapi(data) {
    return request({
        url: '/admin/tag/addTag',
        method: 'post',
        data
    })
}

export function updateapi(data) {
    return request({
        url: '/admin/tag/updateTag',
        method: 'post',
        data
    })
}

export function deleteapi(tagId) {
    return request({
        url: '/admin/tag/deleteTag',
        method: 'get',
        params: { tagId }
    })
}